
<div style="clear:both;">
<?php $this->widget('zii.widgets.CMenu',array(
    'items'=>array(
        array('label'=>'Location info','url'=>array('/salespersonportal/Locations/update','id'=>$model->id)),
        array('label'=>'Contacts','url'=>array('/salespersonportal/Locationcontacts','id'=>$model->id),'active'=>Yii::app()->controller->id=='locationcontacts'),
        array('label'=>'Equipment','url'=>array('/salespersonportal/Equipment','custno'=>$model->custno,'locno'=>$model->locno),'active'=>Yii::app()->controller->id=='equipment'),
        array('label'=>'Documents','url'=>array('/salespersonportal/Documents','custno'=>$model->custno,'locno'=>$model->locno,'type'=>DOCTYPE_LOC),'active'=>Yii::app()->controller->id=='documents'),
        array('label'=>'Invoices','url'=>array('/salespersonportal/Invoices','custno'=>$model->custno,'locno'=>$model->locno,'type'=>Invoice::TYPE_INVOICE),'active'=>Yii::app()->controller->id=='invoices'),
        //array('label'=>'Dispatches','url'=>array('/salespersonportal/Dispatchdetails/','custno'=>$model->custno,'locno'=>$model->locno),'active'=>Yii::app()->controller->id=='dispatchdetails'),
        array('label'=>'Job','url'=>array('/salespersonportal/jobs','custno'=>$model->custno,'locno'=>$model->locno),'active'=>Yii::app()->controller->id=='jobs'),
        array('label' => 'Contracts', 'url' => array('/salespersonportal/contracts', 'custno' => $model->custno, 'locno' => $model->locno), 'active' => Yii::app()->controller->id == 'contracts'),

    ),
    'id'=>'tab-menu',
    'htmlOptions'=>array(
        'class'=>'tabs tabs-with-summary',
    ),
    'submenuHtmlOptions'=>array('class'=>'tabs tabs-with-summary'),
));?>
</div>